@echo off echo Script by Anthony Bautista / anthony@agosis.com setlocal EnableDelayedExpansion set remoteFilename=AAA_TrueRife_Frequencies_for_Kim.zip REM Get the remote frequencies file. curl -s http://healthyliving.ehubster.com/truerife/%remoteFilename% -o %userprofile%\downloads\%remoteFilename% REM Set the Downloads folder path from the environment variable set "downloadsPath=%USERPROFILE%\Downloads" REM Set the extraction destination directory set "extractDir=%USERPROFILE%\Documents\TrueRife Frequencies" REM Create the extraction directory if it doesn't exist if not exist "%extractDir%" mkdir "%extractDir%" set choice= REM Loop through each zip file starting with "AAA_" in the Downloads folder for %%f in ("%downloadsPath%\AAA_*.zip") do ( echo Found: %%~nxf set /p "choice=Do you want to extract '%%~nxf'? (y/n): " if "!choice!"=="y" ( echo Extracting %%~nxf... tar -xf "%%f" -C "%extractDir%" del "%%f" echo Extraction complete and file deleted. ) else ( echo Skipping %%~nxf. ) ) echo All files processed! pause